package com.ea.modular.controller.sys;



import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;


import com.ea.common.parent.controller.BaseController;
import com.ea.modular.model.sys.Notice;
import com.ea.modular.service.sys.NoticeService;





/**
 * 总览信息
 *
 * @author jun
 */

@Controller
@RequestMapping("/blackboard")
public class BlackboardController extends BaseController {


	@Autowired
	private NoticeService noticeService;

    /**
     * 跳转到首页
     */
    @RequestMapping("/index")
    public String blackboard() {
  
        return "blackboard";
    }
    
    /**
     * 跳转到通知
     */
    @RequestMapping("")
    public String noticeboard(Model model) {
    	List<Notice> list = noticeService.findAllList(null);
    	model.addAttribute("noticeList", list);
        return "noticeboard";
    }
    
	
}
